/*
 * Copyright (c) 2009 Piotr Piastucki
 * 
 * This file is part of Patchca CAPTCHA library.
 * 
 *  Patchca is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  
 *  Patchca is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *  
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with Patchca. If not, see <http://www.gnu.org/licenses/>.
 */
package com.chenfei.captcha.utils.color;


import java.awt.*;
import java.util.ArrayList;
import java.util.List;

public class RandomColorFactory {

	private Color blue;
	private Color green;
	private Color cyan;
	private Color red;
	private List<Color> colorList;

	public RandomColorFactory() {
		colorList = new ArrayList<Color>();
		blue = new Color(59, 139, 232);
		green = new Color(0,139,0);
		cyan = new Color(0,139,139);
		red = new Color(255,51,85);
		colorList.add(blue);
		colorList.add(green);
		colorList.add(cyan);
		colorList.add(red);
	}

	public Color getColor(int index) {
		return colorList.get(0);
	}

}
